<?php
/*
 *  personal vocabulary training: feedback on error + write in db wrong word
 */

include("header.inc.php"); //on inclut le haut de page

#get vars
$action=$_GET['action'];
$goodwordLocal=$_GET['goodwordLocal'];
$goodwordForeign=$_GET['goodwordForeign'];
$langue=$_GET['langue'];
$utilisateur=$_GET['utilisateur'];

	 $sql="INSERT INTO `ergo_training_voc` 
(`userid`, `lang`, `typ`, `foreign`, `local`, `note`) 
VALUES 
('$utilisateur', '$langue', 'texte', '$goodwordForeign' , '$goodwordLocal' , '0')
";
#echo $sql; //tests
$sqlI=mysql_query($sql);
if(!$sqlI) {
	echo "erreur MySQL: " .mysql_error();
	exit;
}


echo "<pre>Et non,
<font color=red>$goodwordForeign</font>
signifie
<font color=green>$goodwordLocal</font>
<a href=\"trainVocVersionTapeTrad.php\">Retour</a>
</pre>";
?>
